using System;
using System.Collections.Generic;
using System.IO;
using BookDownloader.Core.Data;

namespace BookDownloader.Core.Implementation
{
	[Serializable]
	public class CalibreConverter : IEbookConverter
	{
		
		public Stream Convert(Stream input, ILibFileFormat fromFileFormat, ILibFileFormat toFileFormat, BookBase book)
		{
			CalibreFileFormatter fileFormatter = new CalibreFileFormatter(fromFileFormat,toFileFormat);
			return fileFormatter.Convert(input, book);
		}

	}
}